package chapter3.No3_1_等待和通知机制.g方法wait_long的使用;

/**
 * *：wait(long) long秒后自动唤醒
 * Created by Administrator on 2016/11/17.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Object lock = new Object();
        ThreadA a = new ThreadA(lock);
        a.start();

//        Thread.sleep(2000);
//        synchronized (lock) {
//            lock.notifyAll();
//        }
    }
}
